gtk4.git
8 years agoeventbox: Remove visible-window property
Timm Bäder [Thu, 27 Jul 2017 19:53:42 +0000 (21:53 +0200)]
eventbox: Remove visible-window property

The GdkWindow that was supposed to back it is gone.

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:34 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:22 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:07 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agogtklabel: Fix touch link handling under wayland
Carlos Garnacho [Tue, 25 Jul 2017 14:18:07 +0000 (16:18 +0200)]
gtklabel: Fix touch link handling under wayland

Refactor the code updating the active link under the current coordinates
into a separate function, and call it on GtkGestureMultiPress::pressed
so the link is updated on GDK_TOUCH_BEGIN. Based on a patch by
Jan-Michael Brummer <jan.brummer@tabos.org>.

https://bugzilla.gnome.org/show_bug.cgi?id=776903

8 years agogtklinkbutton: Set cursor on button's event window
Carlos Garnacho [Tue, 25 Jul 2017 13:46:01 +0000 (15:46 +0200)]
gtklinkbutton: Set cursor on button's event window

It is not necessary to (re)set the cursor on every crossing
event, and can probably yield the wrong results if there are
multiple master devices involved. Just set it on init(), and
let the inner machinery update the cursor whenever necessary.

This patch is an adaption of commit 0daf79676 in gtk-3-22, the
side effects are not as bad here because the cursor was already
being set on the widget specifically instead of the parent
widget's, but there's still some nonetheless (plus, it's simpler)

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Clear tablet tool cursor on proximity out
Carlos Garnacho [Tue, 25 Jul 2017 13:44:30 +0000 (15:44 +0200)]
wayland: Clear tablet tool cursor on proximity out

This ensures that the tablet tool will get the cursor updated even if it
happens to fall within the same window again on the next proximity in.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agogdkwindow: Update cursor for tablet tools in the window
Carlos Garnacho [Tue, 25 Jul 2017 13:37:10 +0000 (15:37 +0200)]
gdkwindow: Update cursor for tablet tools in the window

This check must be done explicitly on Wayland as the master device for
tablet tools differ from the Core Pointer. This ensures that whenever a
tablet tool is inside a window and the cursor is programmatically changed,
it will be visually updated too.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()
Carlos Garnacho [Tue, 25 Jul 2017 13:35:41 +0000 (15:35 +0200)]
wayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()

This flag wasn't being honored so far...

8 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Jul 2017 18:16:59 +0000 (20:16 +0200)]
Updated Spanish translation

8 years agoUpdate Croatian translation
gogo [Tue, 25 Jul 2017 17:43:59 +0000 (17:43 +0000)]
Update Croatian translation

8 years agoactionbar: Call g_object_class_install_properties()
Kjell Ahlstedt [Mon, 24 Jul 2017 08:19:05 +0000 (10:19 +0200)]
actionbar: Call g_object_class_install_properties()

https://bugzilla.gnome.org/show_bug.cgi?id=785318

8 years agoAvoid the use of g_autofree
Matthias Clasen [Mon, 24 Jul 2017 17:24:33 +0000 (13:24 -0400)]
Avoid the use of g_autofree

We can't use this in code that may be built on win32,
so lets just not use it at all.

8 years agowidget: Stop invalidating recursively
Timm Bäder [Sun, 23 Jul 2017 19:39:38 +0000 (21:39 +0200)]
widget: Stop invalidating recursively

8 years agoupdated Punjabi Translation
A S Alam [Sun, 23 Jul 2017 14:59:04 +0000 (09:59 -0500)]
updated Punjabi Translation

8 years agoUpdate Friulian translation
Fabio Tomat [Sat, 22 Jul 2017 21:41:59 +0000 (21:41 +0000)]
Update Friulian translation

8 years agonotebook: Set tabs child visible before allocating a size
Timm Bäder [Sat, 22 Jul 2017 12:13:03 +0000 (14:13 +0200)]
notebook: Set tabs child visible before allocating a size

Otherwise we might skip them here, then set child-visible to TRUE and
then later snapshot them even though they have no valid size.

8 years agocssstylechange: Fix change printing
Timm Bäder [Sat, 22 Jul 2017 07:22:56 +0000 (09:22 +0200)]
cssstylechange: Fix change printing

Only print the old value once, above the new one.

8 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 22 Jul 2017 05:15:36 +0000 (05:15 +0000)]
Update Indonesian translation

8 years agoflowbox: Fix get_child_at_pos
Timm Bäder [Sat, 22 Jul 2017 04:52:08 +0000 (06:52 +0200)]
flowbox: Fix get_child_at_pos

8 years agotestflowbox: hexpand the flowbox
Timm Bäder [Sat, 22 Jul 2017 04:51:19 +0000 (06:51 +0200)]
testflowbox: hexpand the flowbox

8 years agotests: Include system headers appropriately
Chun-wei Fan [Fri, 21 Jul 2017 08:00:44 +0000 (16:00 +0800)]
tests: Include system headers appropriately

Don't include unistd.h on Windows, and include the appropriate headers on
Windows as necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agotests/rendernode-create-tests.c: Don't use VLAs
Chun-wei Fan [Fri, 21 Jul 2017 07:58:38 +0000 (15:58 +0800)]
tests/rendernode-create-tests.c: Don't use VLAs

Replace uses of VLAs (variable-length arrays) using g_newa(), since
Visual Studio builds will unlikely ever support VLAs (which became optional
in C11).

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogtk/gtkprintoperation-win32.c: Don't call gtk_widget_set_allocation()
Chun-wei Fan [Fri, 21 Jul 2017 07:53:53 +0000 (15:53 +0800)]
gtk/gtkprintoperation-win32.c: Don't call gtk_widget_set_allocation()

This function was removed recently.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agowayland: Implement support for tablet wheel scrolling
Jason Gerecke [Mon, 12 Jun 2017 22:41:51 +0000 (15:41 -0700)]
wayland: Implement support for tablet wheel scrolling

Adds support for creating scroll events from Wayland tablet wheel events.
Even though no Wacom tablet puck has a smooth-scrolling wheel, both event
types need to be generated to make the upper layers happy.

https://bugzilla.gnome.org/show_bug.cgi?id=783716

8 years agowayland: Make function to create scroll event more generic
Carlos Garnacho [Thu, 20 Jul 2017 11:26:00 +0000 (13:26 +0200)]
wayland: Make function to create scroll event more generic

Add GdkWaylandPointerData and GdkDevice arguments so it can be
used across master devices.

https://bugzilla.gnome.org/show_bug.cgi?id=783716

8 years agowayland: Get implicit grab serial information from tablet devices
Jason Gerecke [Fri, 23 Jun 2017 18:17:53 +0000 (11:17 -0700)]
wayland: Get implicit grab serial information from tablet devices

If a tablet device is used to perform actions like window moving or resizing,
GTK must provide the correct implicit grab serial number over Wayland to Mutter
in order for the action to succeed. This commit adds tablet support to the
implicit serial getters.

https://bugzilla.gnome.org/show_bug.cgi?id=777333

8 years agogdkgears: Add window content spacing back
Timm Bäder [Thu, 20 Jul 2017 10:41:12 +0000 (12:41 +0200)]
gdkgears: Add window content spacing back

This was lost when border-width was removed.

8 years agooverlay: Fix child widget allocation
Timm Bäder [Thu, 20 Jul 2017 10:40:46 +0000 (12:40 +0200)]
overlay: Fix child widget allocation

Just adding the overlay's own position is wrong now.

8 years agooverlay: Keep the main child at the bottom
Timm Bäder [Thu, 20 Jul 2017 10:33:57 +0000 (12:33 +0200)]
overlay: Keep the main child at the bottom

Since gtk_bin_add does a gtk_widget_set_parent call, we cannot use it in
a GtkBin implementation that has multiple child widgets and cares about
their order.

8 years agoMove GdkWindowWindowClass to private headers
Matthias Clasen [Thu, 20 Jul 2017 03:09:02 +0000 (23:09 -0400)]
Move GdkWindowWindowClass to private headers

This enum is no longer used in public api.

8 years agoDrop an unused typedef
Matthias Clasen [Thu, 20 Jul 2017 03:01:18 +0000 (23:01 -0400)]
Drop an unused typedef

GdkWindowRedirect is not used anywhere anymore.

8 years agowayland: Throttle system bell requests
Jonas Ådahl [Mon, 13 Mar 2017 06:42:38 +0000 (14:42 +0800)]
wayland: Throttle system bell requests

If a bad behaving application tries to make the window/display beep too
often, throttle the beep requests so that we don't end up filling the
Wayland socket queue.

The throttle is set to 50 beeps per second, which far more beeps than
will ever make any sense from a user experience point of view, but will
avoid terminating due to an excessive amount of requests.

https://bugzilla.gnome.org/show_bug.cgi?id=778188

8 years agowayland: Make beep requests go through the GdkDisplay
Jonas Ådahl [Mon, 13 Mar 2017 06:33:06 +0000 (14:33 +0800)]
wayland: Make beep requests go through the GdkDisplay

This way we can add things like throttling.

https://bugzilla.gnome.org/show_bug.cgi?id=778188

8 years agoSummarize changes so far
Matthias Clasen [Thu, 20 Jul 2017 01:52:10 +0000 (21:52 -0400)]
Summarize changes so far

This is a high-level view of what was just merged.

8 years agotestgtk: Remove unused local variable
Timm Bäder [Wed, 19 Jul 2017 12:07:30 +0000 (14:07 +0200)]
testgtk: Remove unused local variable

8 years agoGtkStyleContext: Create path node in _new
Timm Bäder [Wed, 19 Jul 2017 11:13:28 +0000 (13:13 +0200)]
GtkStyleContext: Create path node in _new

So we can avoid creating a GtkCssPathNode in _init and then throwing it
away right after when using the _new_with_node constructor, which is the
one we use for all widgets.

8 years agoGtkStyleContext: Remove property cache
Timm Bäder [Wed, 19 Jul 2017 11:07:48 +0000 (13:07 +0200)]
GtkStyleContext: Remove property cache

It was only used for widget style properties which don't exist anymore.

8 years agowidget-factory: fix page 3 widget expand
Timm Bäder [Tue, 18 Jul 2017 12:13:05 +0000 (14:13 +0200)]
widget-factory: fix page 3 widget expand

The treeview/listbox on the left side should not expand.

8 years agoGdkWindow: Default to unfocused
Timm Bäder [Tue, 18 Jul 2017 10:36:35 +0000 (12:36 +0200)]
GdkWindow: Default to unfocused

Don't set the have_focused field of the window's toplevel to TRUE by
default and don't set the FOCUSED state in gdk_window_map. This a means
toplevel window's state is what the WM expects, and the FOCUSED state
will be set anyway when we map the window and receive a _NET_WM_STATE
message.

8 years agostatusbar: Inherit from GtkWidget
Timm Bäder [Mon, 17 Jul 2017 11:21:21 +0000 (13:21 +0200)]
statusbar: Inherit from GtkWidget

8 years agomodelmenuitem: Care about GtkAccelLabel in get_text
Timm Bäder [Sun, 16 Jul 2017 15:19:59 +0000 (17:19 +0200)]
modelmenuitem: Care about GtkAccelLabel in get_text

8 years agomodelmenuitem: Update indicator visibility when has_indicator changes
Timm Bäder [Sun, 16 Jul 2017 15:19:41 +0000 (17:19 +0200)]
modelmenuitem: Update indicator visibility when has_indicator changes

8 years agomenushell: Hide model submenus by default
Timm Bäder [Sun, 16 Jul 2017 15:19:17 +0000 (17:19 +0200)]
menushell: Hide model submenus by default

8 years agoGtkCheckMenuItem: Remove snapshot-indicator vfunc
Timm Bäder [Sun, 16 Jul 2017 15:18:17 +0000 (17:18 +0200)]
GtkCheckMenuItem: Remove snapshot-indicator vfunc

Let the widget snapshot all child widgets and control the visibility of
those child widgets instead.

8 years agolabel: Remove GtkEventBox mention from docs
Timm Bäder [Sun, 16 Jul 2017 14:45:36 +0000 (16:45 +0200)]
label: Remove GtkEventBox mention from docs

Packing the label inside a GtkEventBox is not necessary anymore for it
to receive events.

8 years agoimage: Remove irrelevant code sample
Timm Bäder [Sun, 16 Jul 2017 14:42:39 +0000 (16:42 +0200)]
image: Remove irrelevant code sample

Both the description and the sample itself are obsolete or uninteresting
now that all widgets can receive events.

8 years agospinbutton: Fix css node docs
Timm Bäder [Sun, 16 Jul 2017 13:46:09 +0000 (15:46 +0200)]
spinbutton: Fix css node docs

8 years agotreeview: Fix row drag icon offsets
Timm Bäder [Sun, 16 Jul 2017 07:37:17 +0000 (09:37 +0200)]
treeview: Fix row drag icon offsets

8 years agotreeviewcolumn: Remove input window
Timm Bäder [Sat, 15 Jul 2017 18:43:52 +0000 (20:43 +0200)]
treeviewcolumn: Remove input window

8 years agospinbutton: expand the entry
Timm Bäder [Sat, 15 Jul 2017 06:44:09 +0000 (08:44 +0200)]
spinbutton: expand the entry

It's supposed to fill the entire spinbutton allocation apart from the
buttons

8 years agoAdwaita: Set minimum size for modelbutton arrows
Timm Bäder [Fri, 14 Jul 2017 08:30:32 +0000 (10:30 +0200)]
Adwaita: Set minimum size for modelbutton arrows

Otherwise the minimum size is 1×1.

8 years agoFix a few testsuite failures
Timm Bäder [Thu, 13 Jul 2017 14:28:49 +0000 (16:28 +0200)]
Fix a few testsuite failures

Adjust default property values, skip GtkRange:adjustment.

8 years agowidget: Make _set_clip private
Timm Bäder [Wed, 12 Jul 2017 11:28:00 +0000 (13:28 +0200)]
widget: Make _set_clip private

We don't need this anymore since clips are now reported in
size-allocate.

8 years agocheckmenuitem: Don't always snapshot the indicator
Timm Bäder [Wed, 12 Jul 2017 06:30:49 +0000 (08:30 +0200)]
checkmenuitem: Don't always snapshot the indicator

Chaining up will snapshot all child widgets, which doesn't work with
GtkModelMenuItem.

8 years agoapplicationwindow: Remove some useless queue_resize calls
Timm Bäder [Wed, 12 Jul 2017 06:14:15 +0000 (08:14 +0200)]
applicationwindow: Remove some useless queue_resize calls

The gtk_widget_{set_parent,unparent} calls before will already cause a
resize when necessary.

8 years agomodelmenuitem: Set label on menu items
Timm Bäder [Wed, 12 Jul 2017 06:09:04 +0000 (08:09 +0200)]
modelmenuitem: Set label on menu items

We have to add a check for GTK_IS_ACCEL_LABEL too now...

8 years agowidget: Remove queue_draw_region vfunc
Timm Bäder [Wed, 12 Jul 2017 05:48:15 +0000 (07:48 +0200)]
widget: Remove queue_draw_region vfunc

Unused

8 years agowidget: Set :focus on focus children
Timm Bäder [Tue, 11 Jul 2017 16:20:48 +0000 (18:20 +0200)]
widget: Set :focus on focus children

8 years agorevealer: Explain CSS oddities
Timm Bäder [Tue, 11 Jul 2017 10:33:49 +0000 (12:33 +0200)]
revealer: Explain CSS oddities

8 years agowidget: Add baseline and out_clip parameters to size-allocate
Timm Bäder [Tue, 11 Jul 2017 07:58:21 +0000 (09:58 +0200)]
widget: Add baseline and out_clip parameters to size-allocate

Since setting a clip is mandatory for almost all widgets, we can as well
change the size-allocate signature to include a out_clip parameter, just
like GtkCssGadget did. And since we now always propagate baselines, we
might as well pass that one on to size-allocate.

This way we can also make sure to transform the clip returned from
size-allocate to parent-coordinates, i.e. the same coordinate space
priv->allocation is in.

8 years agowidget: Don't propagate size-allocate if only the position changed
Timm Bäder [Mon, 10 Jul 2017 07:34:43 +0000 (09:34 +0200)]
widget: Don't propagate size-allocate if only the position changed

We can do this now so we should

8 years agowidget: Fix priv dereference in size_allocate_with_baseline
Timm Bäder [Sun, 9 Jul 2017 14:42:19 +0000 (16:42 +0200)]
widget: Fix priv dereference in size_allocate_with_baseline

Accessing ->priv is only safe *after* the GTK_IS_WIDGET precondition, so
use the get_instance_private function instead.

8 years agowidget: Fix a widget/container mixup
Timm Bäder [Sun, 9 Jul 2017 12:30:45 +0000 (14:30 +0200)]
widget: Fix a widget/container mixup

8 years agowindow: Fix resizing with solid-csd
Timm Bäder [Sun, 9 Jul 2017 08:21:30 +0000 (10:21 +0200)]
window: Fix resizing with solid-csd

We can't use a 20px resize handle in that case so fall back to the
padding area of the window. Still ugly but it works.

8 years agogtkapplication: g_dbus_proxy_new_sync can return NULL
Timm Bäder [Sun, 9 Jul 2017 08:02:34 +0000 (10:02 +0200)]
gtkapplication: g_dbus_proxy_new_sync can return NULL

Specifically, in the case where @error is set.

8 years agowindow: Fix annotations in get_size and get_position
Timm Bäder [Sun, 9 Jul 2017 06:14:42 +0000 (08:14 +0200)]
window: Fix annotations in get_size and get_position

8 years agowidget: Remove gtk_cairo_transform_to_window
Timm Bäder [Sat, 8 Jul 2017 19:10:17 +0000 (21:10 +0200)]
widget: Remove gtk_cairo_transform_to_window

Useless in a world without windows and cairo.

8 years agopopover: Add a contents node
Timm Bäder [Sat, 8 Jul 2017 10:04:44 +0000 (12:04 +0200)]
popover: Add a contents node

Remove the special case in gtkwidget.c where we didn't draw any css
background/border for popovers. Instead, rely on themes to not style the
popover node and add a contents gizmo that gets the actual css styling.
We then requeste enough space for the popover to draw both the contents
and the arrow on the side.

8 years agowidget: Draw css box after pushing a opacity node
Timm Bäder [Sat, 8 Jul 2017 08:33:45 +0000 (10:33 +0200)]
widget: Draw css box after pushing a opacity node

8 years agoFix a few documentation issues
Timm Bäder [Sat, 8 Jul 2017 07:56:41 +0000 (09:56 +0200)]
Fix a few documentation issues

8 years agotestpopover: Remove expand GtkBox child properties
Timm Bäder [Sat, 8 Jul 2017 07:42:33 +0000 (09:42 +0200)]
testpopover: Remove expand GtkBox child properties

8 years agowidget: Move get_resize_needed to gtkwidget.c
Timm Bäder [Wed, 5 Jul 2017 15:46:37 +0000 (17:46 +0200)]
widget: Move get_resize_needed to gtkwidget.c

It's only used in there so we don't need it in the private header.

8 years agonotebook: Allocate unmapped tabs
Timm Bäder [Wed, 5 Jul 2017 14:04:59 +0000 (16:04 +0200)]
notebook: Allocate unmapped tabs

8 years agofix a few documentation problems
Timm Bäder [Wed, 5 Jul 2017 12:13:41 +0000 (14:13 +0200)]
fix a few documentation problems

8 years agocenterbox: Add some missing return value annotations
Timm Bäder [Wed, 5 Jul 2017 11:09:32 +0000 (13:09 +0200)]
centerbox: Add some missing return value annotations

8 years agobox: Ignore baselines when vertical
Timm Bäder [Wed, 5 Jul 2017 09:09:27 +0000 (11:09 +0200)]
box: Ignore baselines when vertical

For now.

8 years agobbox: Don't report a horizontal baseline
Timm Bäder [Wed, 5 Jul 2017 06:31:15 +0000 (08:31 +0200)]
bbox: Don't report a horizontal baseline

8 years agowidget: Propagate correct baseline
Timm Bäder [Tue, 4 Jul 2017 17:02:04 +0000 (19:02 +0200)]
widget: Propagate correct baseline

8 years agowidget: Always pass on baselines
Timm Bäder [Tue, 4 Jul 2017 17:00:00 +0000 (19:00 +0200)]
widget: Always pass on baselines

8 years agowidget: Simplify snapshot_child
Timm Bäder [Tue, 4 Jul 2017 13:41:27 +0000 (15:41 +0200)]
widget: Simplify snapshot_child

8 years agoentry: Fix baseline alignment
Timm Bäder [Tue, 4 Jul 2017 13:22:58 +0000 (15:22 +0200)]
entry: Fix baseline alignment

Since we only look at priv->text_baseline later on, it would be useful
to actually set it to a useful value.

8 years agowidget: Draw debug nodes for widget margins too
Timm Bäder [Tue, 4 Jul 2017 13:06:18 +0000 (15:06 +0200)]
widget: Draw debug nodes for widget margins too

8 years agowidget: Fix copy&paste error when creating debug nodes
Timm Bäder [Tue, 4 Jul 2017 12:59:02 +0000 (14:59 +0200)]
widget: Fix copy&paste error when creating debug nodes

8 years agosizerequest: Add more assertions for baselines
Timm Bäder [Tue, 4 Jul 2017 09:35:06 +0000 (11:35 +0200)]
sizerequest: Add more assertions for baselines

min baselines must be <= natural baselines and both must lie inside the
content size of the widget.

8 years agowidget: Unset PRELIGHT and ACTIVE state flags in unmap
Timm Bäder [Sun, 2 Jul 2017 18:46:31 +0000 (20:46 +0200)]
widget: Unset PRELIGHT and ACTIVE state flags in unmap

8 years agobutton: Reset in_button state in unmap
Timm Bäder [Sun, 2 Jul 2017 18:45:23 +0000 (20:45 +0200)]
button: Reset in_button state in unmap

Since at that point the point is clearly not in the button anymore.

8 years agolabel: Fix get_layout_index
Timm Bäder [Sun, 2 Jul 2017 12:16:09 +0000 (14:16 +0200)]
label: Fix get_layout_index

Properly translate the given coordinates to layout coordinates. Fixes
clicking links and selecting text.

8 years agotextview: Invalidate entire widget
Timm Bäder [Sun, 2 Jul 2017 07:00:15 +0000 (09:00 +0200)]
textview: Invalidate entire widget

8 years agotextview: Remove size_changed check in size-allocate
Timm Bäder [Sun, 2 Jul 2017 06:29:07 +0000 (08:29 +0200)]
textview: Remove size_changed check in size-allocate

It's broken and we only hit size-allocate when the size changes anyway.

8 years agolinkbutton: Remove useless unrealize implementation
Timm Bäder [Sat, 1 Jul 2017 17:21:10 +0000 (19:21 +0200)]
linkbutton: Remove useless unrealize implementation

8 years agostack: Fix under transitions
Timm Bäder [Sat, 1 Jul 2017 17:15:01 +0000 (19:15 +0200)]
stack: Fix under transitions

make sure we initialize both width and height with proper values.

8 years agoeventbox: Remove window
Timm Bäder [Sat, 1 Jul 2017 16:16:24 +0000 (18:16 +0200)]
eventbox: Remove window

8 years agocenterbox: Avoid accessing unset widgets
Timm Bäder [Sat, 1 Jul 2017 16:15:41 +0000 (18:15 +0200)]
centerbox: Avoid accessing unset widgets

8 years agotextview: Use correct size for cairo node bounds
Timm Bäder [Sat, 1 Jul 2017 06:47:51 +0000 (08:47 +0200)]
textview: Use correct size for cairo node bounds

8 years agowindow: Move updates debugging to GtkWidget
Timm Bäder [Fri, 30 Jun 2017 12:01:59 +0000 (14:01 +0200)]
window: Move updates debugging to GtkWidget

Which has the necessary information.

8 years agoscale: Fix mark positions
Timm Bäder [Fri, 30 Jun 2017 11:40:23 +0000 (13:40 +0200)]
scale: Fix mark positions

Someone else will have to fix the css.

8 years agorange: Fix get_range_rect
Timm Bäder [Fri, 30 Jun 2017 11:21:06 +0000 (13:21 +0200)]
range: Fix get_range_rect

get_own_allocation's position is relative to the given widget's origin,
not the parent.

8 years agorange: Fix mark positions
Timm Bäder [Fri, 30 Jun 2017 11:10:32 +0000 (13:10 +0200)]
range: Fix mark positions

The values returned by gtk_range_compute_slider_position are relative
to the trough_widget (the slider's parent), not the slider widget
itself.

8 years agoscale: Remove custom indicator drawing
Timm Bäder [Fri, 30 Jun 2017 11:08:00 +0000 (13:08 +0200)]
scale: Remove custom indicator drawing

it's a css node so we can simply use the background instead of the
foreground color in the theme.